package api;

import conf.App;
import org.apache.commons.lang3.RandomStringUtils;
import util.HttpClientUtil;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;

public class CommonApi {
    private static final String verify_url= App.BASE_URL+"/common/public/verifycode/%s";
    public ResponseData get_verify(String id) throws IOException, URISyntaxException {
        String format = String.format(verify_url, id);
        return HttpClientUtil.get(format);
    }
}
